// app.js
App({
    onLaunch: function() {
        const info = wx.getSystemInfoSync()
        this.globalData.screenWidth = info.screenWidth
        this.globalData.screenHeight = info.screenHeight
        this.globalData.statusBarHeight = info.statusBarHeight

        const deviveRadio = info.screenHeight / info.screenWidth
        
        this.globalData.deviveRadio = deviveRadio
    },
    globalData: {
        screenWidth: 0,
        screenHeight: 0,
        statusBarHeight: 0,
        NavBarHeight: 44,
        deviveRadio: 0
    }
})
